<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<h3>测试分支结构</h3>
			请输入分数：<input type="text" id="" value="" v-model="score"/>
			<p v-if="score >= 90">优秀</p>
			<p v-else-if="score >= 80">良好</p>
			<p v-else-if="score >= 70">中等</p>
			<p v-else>再接再厉</p>
			
			<p v-for="(item,index) in lunch">{{index}}------{{item}}</p>
			
			<p v-for="item in list">
				id:{{item.id}} | 姓名:{{item.name}} | 年龄:{{item.age}}
			</p>
		</div>
		<script type="text/javascript">
			const app = new Vue({
				el:"#app",
				data() {
					return{
						score:"",
						lunch:["宫保鸡丁","尖椒鸡蛋","湖南小炒肉","地三鲜"],
						list:[
							{id:1,name:"张三",age:18},
							{id:2,name:"李四",age:18},
							{id:3,name:"王五",age:18}
						]
					}
				},
				methods:{
					
				}
			})
		</script>
	</body>
</html>
